package com.syezon.wifikey.api;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2018/9/13.
 */

public interface ApiService {

    String BASE_URL = "http://res.ipingke.com/";
    String NEWS_BASE_URL = "http://stwifi.51woshow.com/";

    @GET("adsw/wifikey.html")
    Observable<String> getAds();

    @GET("https://restapi.amap.com/v3/weather/weatherInfo")
    Observable<String> getWeatherInfo(@Query("city") String city, @Query("key") String key, @Query("extensions") String extension);

    @GET("wallpaper/wallpaper.html")
    Observable<String> getPingBaoData();

    @GET("/doc/getYylNewsChannel.htm")
    Observable<String> queryYiyouNewsTab(@Query("platform") int platform);


    @GET("/doc/getYylNewsList.htm")
    Observable<String> queryYiyouNewsList(@QueryMap Map<String, Object> paramMap);
}
